package com.ruoyi.distributionGrade.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 分销等级对象 wdmd_distribution_grade
 * 
 * @author ruoyi
 * @date 2025-10-11
 */
public class DistributionGrade extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 等级ID */
    private Long gradeId;

    /** 等级名称 */
    @Excel(name = "等级名称")
    private String gradeName;

    /** 等级权重(越大越高) */
    @Excel(name = "等级权重(越大越高)")
    private Long gradeWeight;

    /** 自购佣金比例 */
    @Excel(name = "自购佣金比例")
    private BigDecimal selfRatio;

    /** 一级佣金比例 */
    @Excel(name = "一级佣金比例")
    private BigDecimal firstRatio;

    /** 二级佣金比例 */
    @Excel(name = "二级佣金比例")
    private BigDecimal secondRatio;

    /** 生效最低订单金额 */
    @Excel(name = "生效最低订单金额")
    private BigDecimal minOrderAmount;

    /** 是否默认等级：0-否 1-是 */
    @Excel(name = "是否默认等级：0-否 1-是")
    private String isDefault;

    /** 状态（0=上架 1=下架） */
    @Excel(name = "状态", readConverterExp = "0==上架,1==下架")
    private String status;

    /** 删除标志（0存在 2删除） */
    private String delFlag;

    /** 版本号（乐观锁） */
    @Excel(name = "版本号", readConverterExp = "乐=观锁")
    private Long version;

    public void setGradeId(Long gradeId) 
    {
        this.gradeId = gradeId;
    }

    public Long getGradeId() 
    {
        return gradeId;
    }

    public void setGradeName(String gradeName) 
    {
        this.gradeName = gradeName;
    }

    public String getGradeName() 
    {
        return gradeName;
    }

    public void setGradeWeight(Long gradeWeight) 
    {
        this.gradeWeight = gradeWeight;
    }

    public Long getGradeWeight() 
    {
        return gradeWeight;
    }

    public void setSelfRatio(BigDecimal selfRatio) 
    {
        this.selfRatio = selfRatio;
    }

    public BigDecimal getSelfRatio() 
    {
        return selfRatio;
    }

    public void setFirstRatio(BigDecimal firstRatio) 
    {
        this.firstRatio = firstRatio;
    }

    public BigDecimal getFirstRatio() 
    {
        return firstRatio;
    }

    public void setSecondRatio(BigDecimal secondRatio) 
    {
        this.secondRatio = secondRatio;
    }

    public BigDecimal getSecondRatio() 
    {
        return secondRatio;
    }

    public void setMinOrderAmount(BigDecimal minOrderAmount) 
    {
        this.minOrderAmount = minOrderAmount;
    }

    public BigDecimal getMinOrderAmount() 
    {
        return minOrderAmount;
    }

    public void setIsDefault(String isDefault) 
    {
        this.isDefault = isDefault;
    }

    public String getIsDefault() 
    {
        return isDefault;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public void setVersion(Long version) 
    {
        this.version = version;
    }

    public Long getVersion() 
    {
        return version;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("gradeId", getGradeId())
            .append("gradeName", getGradeName())
            .append("gradeWeight", getGradeWeight())
            .append("selfRatio", getSelfRatio())
            .append("firstRatio", getFirstRatio())
            .append("secondRatio", getSecondRatio())
            .append("minOrderAmount", getMinOrderAmount())
            .append("isDefault", getIsDefault())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("version", getVersion())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .toString();
    }
}
